//-----------------------------------------------------------------------------
// SpriteBatch.fx
//
// Microsoft XNA Community Game Platform
// Copyright (C) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------------------------


sampler BaseTexture : register(s0);

struct PixelToFrame
{
    float4 Color : COLOR0;
};

PixelToFrame SpritePixelShader(float4 position : POSITION, float2 texcoords : TEXCOORD0)
{
	PixelToFrame Output = (PixelToFrame)0;
	
	float4 color1 = tex2D(BaseTexture,texcoords.xy);

	if(color1.a != 0)
	{
		Output.Color = float4(0,0,0,1);
	}
	
	return Output;
}


technique SpriteBatch
{
	pass
	{
		PixelShader  = compile ps_2_0 SpritePixelShader();
	}
}
